package cn.edu.zut.cs.DAO;

import cn.edu.zut.cs.Model.book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookDAO {
    void insertBook(book book);
    void insertAll(List<book> bookList);

    void deleteBook(book book);
    void deleteAll(List<book> bookList);
    void deleteById(String id);

    void modifyBook(book book);
    book queryOneBook(book book);
    book queryOneBookById(String id);
    List<book> queryAll();

}
